009 security
好吧,在本次讲座中,让我们来了解一下安全性。
All right in this lecture let's look a little bit on security.
我们如何设置事物的安全性。
How do we set up security on things.
当我们开始与 Seymour 合作时,我们看到安全措施是逐项进行的,因此逐项控制。
When we started with Seymour we saw that security went item by item so control by control.
然后我们进入艾伦·布拉德利(Alan Bradley),我们看到安全性逐页进行,您无法在必须位于特定页面上的特定控件上设置安全性。
Then we went into Alan Bradley we saw that security went page by page you couldn't set up security on a specific control that had to be on a specific page.
现在我们又回到了控制控制的安全状态。
Well now we are back to having security on control by control.
当我双击这个 Gnumeric 时,让我们尝试对其进行一些安全保护。
Let's try to put some security on this Gnumeric when I double click on this.
你看我这里有一个安全标签。
You see I've got a security tab up here.
然后用户限制对象类别得到 a b c d f。
And then user restriction has object classes got a b c d f.
好吧,我想说您需要 B 级安全才能进入此控制,我将继续并单击“确定”。
Well I'm going to say you need Class B security to get into this control and I'm going to go ahead and hit OK.
现在我该如何设置 B 类的安全性,这意味着什么。
Now how do I set up class B's security what does that mean.
好吧,让我来到这里查看我的系统参数,当我打开它时,您会看到这里有一个安全选项卡。
Well let me come over here to my system parameters and when I open that up you see I've got a security tab right here.
这是为多个不同的运营商构建的,因此我有 12 个不同的帐户。
This is built for several different operators so I have 12 different accounts.
我可以启用这些帐户,我可以为这些帐户设置密码。
I can enable those accounts I can set passwords on those accounts.
这是我的安全等级 A 到 F..
And here are my security classes A through F..
好吧,记住我想和 B 一起工作,所以我要使用操作员一,我要启用这个人,我要设置一个 1 到 3 的密码,他将是唯一一个可以操作的人。具有 B 级安全性。
Well remember I want to work with B so I'm going to use an operator one and I'm just going to enable this guy and I'm going to set a password of 1 to 3 and he's going to be the only one that has class-B security.
就像这样我就可以设置我的用户并点击。
So just like that I was able to set up my user and hit.
好的。
OK.
现在该用户需要一种登录方式。
Now that user needs a way to log in.
这就是事情再次变得有点复杂的地方。
And here is where things get a little bit convoluted once again.
因此,我要做的第一件事就是打开“帮助”菜单,向您展示其工作原理。
So the first thing I'm going to do is I'm going to pull up the Help menu and just show you how this works.
因此,让我们搜索安全性,然后双击它。
So let's run a search for security and go ahead and double click on that.
然后我们有所有这些不同的主题,当你真正看到它时,你就像男人一样,这意味着什么。
And then we've got all these different subjects which really when you look at it you're like man what does that mean.
但这是有道理的。
But this one kind of makes sense.
这不是像隐藏所说的物体等等那样的东西。
It's not something like hidde said object blah blah rides.
我该如何安全。
How do I security.
好的。
OK.
这听起来正是我们想要的,所以让我们继续吧。
That sounds like what we want so let's go ahead and take it.
当我们把它拿出来时,它解释了我们有不同的安全级别。
And when we pull this out it explains that we have our different security classes.
然后我们如何登录和注销。
And then how do we log on and log off.
现在,这就是登录时真正棘手的地方,将用户号码输入到本地单词中。
Now this is where things are really screwy to log on a user number is entered into the local word.
LW 92 19,然后将适当的密码输入到另一个本地字存储器寄存器中,并且当输入适当的密码时,将授予所选用户访问权限。
LW 92 19 and then the appropriate password is entered into another local word memory register and when the appropriate password is entered access is granted to the selected user.
如果不正确,则 HDMI 会设置一个本地位,并且该本地位会一直保留,直到明确清除为止。
If it's an incorrect then the HDMI sets a local bit and that local bit remains until explicitly cleared.
然后,当我们想要注销时,我们必须使用一个设置位来暂时设置我的位中的另一个 HDMI。
Then when we want to log off we have to use a set bit to momentarily set this other HDMI in my bit and.
哇,这相当复杂。
Wow that's pretty complicated.
但让我们这样做吧。
But let's do it.
让我们创建一个登录。
Let's create a log in.
因此,我们需要做的第一件事是设置用户号 1 到 12。
So the first thing we need to do is we need to set a user number one through 12.
好吧,让我最小化我们的帮助菜单一秒钟,我将摆脱这个小动画,因为无论如何它都有点奇怪。
All right so let me minimize our help menu for just a second and I'm going to get rid of this little animation thing because it's kind of screwy anyway.
让我们从这里开始寻找提取数字的对象。
And let's start by coming up here for objects pulling up a numeric.
这将是我们的登录信息。
And this is going to be our log in.
那么再来一次。
So one more time.
提醒我登录信息的存储位置。
Remind me where the log in was stored.
那是 LW 92 19,这是一个 16 位签名。
That was LW 92 19 and that's a 16 bit signed.
所以这将是我们本地的 HDMI LW 92 19。
So this is going to be our local HDMI LW 92 19.
然后我们还需要数据输入。
And then we also need our data entry.
那么让我们继续看看吧。
So let's go ahead and look at that.
我认为我们不需要改变任何东西。
And I don't think there's anything that we need to change here.
我们使用的是整数键盘,我们必须设置数字格式。
We're using our integer keypad which we had to set up our numeric format.
这应该是 16 位签名的。
This is supposed to be 16 bits signed.
因此,让我们继续更改小数点左边的位置,我们只需要写出小数点位置,我们将为零,输入低位将为零。
So let's go ahead and change that left of the decimal place we're only going to have to write of the decimal place we're going to have zero the input low is going to be zero.
最高值将是 12,我们不需要任何安全措施,也不需要搞乱形状或字体。
And the high is going to be 12 and we don't need any security on that and we don't really need to mess with shape or font.
所以让我们继续吧。
So let's go ahead and leave that.
这将再次成为我们的日志。
And that is going to be our log again.
这将设置我们的帐户,然后让我们在此处创建该帐户的副本。
So that's going to set our account and then let's create a copy of that right down here.
这将是我们的密码。
And this is going to be our password.
因此,让我们返回到帮助菜单,看看我们应该将密码存储在哪里。
So let's go back into our help menu and see where that password we're supposed to be stored.
这是一个 32 位无符号的。
That's a 32 bit unsigned.
那是 LW 92 20。
And that one's LW 92 20.
好的。
OK.
那么让我们回到这里吧。
So let's go back in here.
双击这个。
Double click this.
现在我们正在寻找 LW 92 20。
Now we're looking for LW 92 20.
我们的数据输入将使用相同的键盘数字格式。
Our data entry is going to use the same keypad numeric format.
这将是 32 位无符号的,我们将继续给出三个小数点或零个小数位,但小数点左边三位,我们将继续将最高位保留为 9九十九。
This is going to be 32 bit unsigned and we're going to go ahead and give that three decimal point or zero decimal places but three digits to the left of the decimal point and we'll go ahead and leave the high on that as nine ninety nine.
没有安全措施,所以我们可以继续攻击。
There's no security so we can go ahead and hit.
好的。
OK.
现在让我们再回到这里一次。
Now let's go back in here one more time.
我们还想设置注销。
We also want to set a log off.
所以我们要设置 90 50 的位来注销。
So we're going to set a bit of 90 50 to logoff.
因此,让我们回到这里,继续复制我们的开始按钮。
So let's come back in here and we'll go ahead and just copy our start button.
我就把它放在这里。
And I'll just put that right down here.
该标签将被注销,并且将与我们的 HMO my Elby 95 50 进行通信。
The label will be logoff and that's going to communicate with our HMO my Elby 95 50.
瞬间。
Momentary.
让我们再次回到我们的帮助菜单。
So let's go back into our help menu one more time.
我们现在设置 90 50 来注销。
We're now setting 90 50 to log off.
如果我们向下滚动一点,我们会看到所有这些内存,我们实际上可以使用它们来管理登录和注销,这样我们就可以重置安全级别,我们可以检测是否有无效密码。
And if we scroll down here a little bit we see all this memory which we can actually use for managing our log in and log off so we can reset security levels we can detect if we have an invalid password.
我们可以检查用户级别。
We can check user levels.
因此,如果我们决定确实想要提高安全性并真正管理这个预算有限的 HDMI 上的帐户,我们就可以做到这一点。
So if we decided that we were really wanting to get sophisticated with our security and really manage accounts on this really budget HDMI we could do that.
但现在让我们继续前进并避开他们以尽量减少这种情况。
But for now let's go ahead and close out of their way to minimize that.
让我们继续看看它是如何工作的,实际上我不想允许输入,因为如果我没有记错的话,这只会告诉我谁登录了。
And let's go ahead and see how this works and this actually I don't want to allow input on because that's just going to tell me who's logged in if I'm not mistaken.
那么让我们尝试一下,让我们进行在线模拟,然后就可以了。
So let's try this let's go into an online simulation and there we go.
我们已经登录了用户级别 1,如果我们尝试更改我们的数字输入,您会看到,我可以单击所有内容,但什么也没有发生。
We have user level 1 logged in and if we try to change our numeric input You see I can click all over this thing and nothing happens.
但如果我来这里,让我们输入我的 1 2 3 密码。
But if I come over here let's put in my 1 2 3 password.
现在看看那个。
Now look at that.
我实际上可以设置这个东西,所以如果我想使它成为 5000,我可以做到这一点,然后如果我注销,请仔细查看。
I can actually set this thing so if I want to make it five thousand I can do that then if I log off well look at that.
即使在我注销后,它仍然允许我更改它。
It still lets me change it even after I logged off.
所以看起来我的注销实际上并不正确。
So it looks like my log off isn't actually right.
我在那里做错了什么。
What am I doing wrong on there.
我是哦,你知道吗。
I'm oh you know what.
我写的是 95 50,而不是 1950,所以让我们解决这个问题并尝试再次上线。
Instead of 1950 I wrote ninety five 50 so let's fix that and try going back on line one more time.
我无法改变这一点。
I am not able to change this.
因此,如果我现在将密码设置为 1 到 3,我就可以更改它。
So if I set my password to 1 to 3 now I am able to change this.
哎呀我逃命了。
Whoops I hit escape.
让我们再试一次并按 Enter 键。
Let's try that again and hit enter.
现在,如果我注销,我的密码就会重置为 0,果然我无法再登录。
Now if I log off my password got reset 0 and sure enough I am no longer able to log in.
非常酷。
So very cool.
这是如何在 easy builder 5000 上使用安全性的基础知识。
That's the basics of how to use security on easy builder 5000.
这有点复杂,但它有效。
It's a little bit convoluted but it works.
这就是本次讲座的内容,我们下期再见。
So that's it for this lecture and I'll see you in the next cheers.